<?php

class Application_Model_Report {

    public function getUserCount($day) {
        $report = new Application_Model_DbTable_Report();
        return number_format($report->getUserCount($day), 2);
    }

    public function getStoreItemCount($day) {
        $report = new Application_Model_DbTable_Report();
        return number_format($report->getStoreItemCount($day), 2);
    }

    public function getOrderCount($day) {
        $report = new Application_Model_DbTable_Report();
        return $report->getOrderCount($day);
    }

    public function getOrderPriceCount($day) {
        $report = new Application_Model_DbTable_Report();
        return $report->getOrderPriceCount($day);
    }

    public function getOrderWeight($day) {
        $report = new Application_Model_DbTable_Report();
        return $report->getStoreItemWeightCount($day);
    }

    public function getExpressOrder($day) {
        $report = new Application_Model_DbTable_Report();
        return $report->getExpressOrderCount($day);
    }

    public function getExpressOrderPrice($day) {
        $report = new Application_Model_DbTable_Report();
        $result = $report->getExpressOrderPriceCount($day) == null ? 0 : $report->getExpressOrderPriceCount($day);
        return number_format($result, 2);
    }
    
    public function getStoreWeightCount($day){
        $report = new Application_Model_DbTable_Report();
        return $report->getStoreWeightCount($day);
    }

}

?>
